package com.mes.system.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.mes.common.domain.BasicModel;

/**
 * 消息的内容，一个消息内容可以对应多个消息（可以将某个消息内容以多条消息的形式发给多个人）
 * 
 */
@Entity()
@Table(name = "S_MESSAGE_CONTENT")
public class MessageContent extends BasicModel {

	@Id
	@GenericGenerator(name = "uniqueId", strategy = "assigned")
	@Column(name = "MESSAGE_CONTENTUID", length = 50)
	protected String uniqueId;

	@Column(name = "CONTENT")
	protected String content;

	@Column(name = "TOPIC", length = 50)
	protected String topic;

	@Column(name = "MESSAGENUM", length = 10)
	protected Long messageNum;

	@Override
	public String getUuid() {
		// TODO Auto-generated method stub
		return this.uniqueId;
	}

	@Override
	public void setUuid(String uuid) {
		// TODO Auto-generated method stub
		this.uniqueId = uuid;
	}

	public String getUniqueId() {
		return uniqueId;
	}

	public void setUniqueId(String uniqueId) {
		this.uniqueId = uniqueId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getTopic() {
		return topic;
	}

	public void setTopic(String topic) {
		this.topic = topic;
	}

	public Long getMessageNum() {
		return messageNum;
	}

	public void setMessageNum(Long messageNum) {
		this.messageNum = messageNum;
	}

}
